import request from '@/utils/request'

// 查询BOM清单列表
export function listIndex() {
  return request({
    url: '/yyj/index/getIndex',
    method: 'get'
  })
}

// 获取缺陷分布
export function listDrawbackRange() {
  return request({
    url: '/yyj/index/getDrawbackRange',
    method: 'get'
  })
}

// 获取不合格工序
export function listBadProcedure() {
  return request({
    url: '/yyj/index/getBadProcedure',
    method: 'get'
  })
}

// 查询week列表
export function getDateResult(date) {
  return request({
    url: '/yyj/index/getDateResult',
    method: 'get',
    params: { date }
  })
}
